<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <!--[if IE]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <![endif]-->
    <title>发表文章</title>
    <link href="https://cdn.bootcss.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet" />
    <#include "../include.ftl">
</head>
<body>
<#include "../header.ftl">
    <div class="container">

        <div class="row">
            <div class="col-md-9" style="background-color: #FFFFFF;">
                <br>
                <ul class="nav nav-tabs" role="tablist">
                    <li class="nav-item">
                        <a class="nav-link active" data-toggle="tab" href="#home">个人资料</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#menu1">修改密码</a>
                    </li>
                </ul>

                <!-- Tab panes -->
                <div class="tab-content">
                    <div id="home" class="container tab-pane active"><br>
                        <div class="row">
                            <div class="col-sm-2" style="padding-top: 1rem">头像</div>
                            <div class="col-sm-1">
                                <#if loginUser.avatar?? && loginUser.avatar !=''>
                                    <img src="${IMAGE_BASE_URL}${loginUser.avatar}" id="avatar" style="height: 3.5rem;float:left; border-radius: 50%; border: 3px solid #eee; overflow: hidden;">
                                <#else>
                                    <img src="/img/default_head.jpg" id="avatar" style="height: 3.5rem;float:left; border-radius: 50%; border: 3px solid #eee; overflow: hidden;">
                                </#if>
                            </div>
                            <div class="col-sm-9">
                                <h6 style="color: #969696">支持 jpg、png 格式大小 1M 以内的图片</h6>
                                <button type="button" class="btn btn-primary" id="btnUp">点击上传</button>
                                <form method="post" id="form1" enctype="multipart/form-data">
                                    <input type="file" name="picture" id="btn_file" style="display:none">
                                </form>
                            </div>
                        </div>
                        <hr>
                        <div class="row">
                            <div class="col-sm-2">用户名</div>
                            <div class="col-sm-10">${loginUser.username}</div>
                        </div>
                        <hr>
                    </div>
                    <div id="menu1" class="container tab-pane fade"><br>
                        <div class="form-group">
                            <label for="firstname" class="control-label">原密码</label>
                            <input type="password" class="form-control" id="oldpassword" name="oldpassword"placeholder="请输入原密码" maxlength="32">
                        </div>
                        <div class="form-group">
                            <label for="firstname" class="control-label">新密码</label>
                            <input type="password" class="form-control" id="newpassword" name="newpassword"placeholder="请输入新密码" maxlength="32">
                        </div>
                        <div class="form-group">
                            <label for="firstname" class="control-label">重复密码</label>
                            <input type="password" class="form-control" id="repassword" name="repassword"placeholder="请输入重复密码" maxlength="32">
                        </div>
                        <div class="form-group">
                            <div class="alert alert-success" role="alert" id="loginTips" style="display: none"></div>
                        </div>
                        <div class="form-group">
                            <button type="button" class="btn btn-outline-primary" id="blogSubmit">重置</button>
                        </div>
                    </div>
                </div>

            </div>
            <br>
            <#include "../right.ftl">
        </div>
    </div>

<#include "../footer.ftl">
<script src="/js/login/resetpw.js"></script>
</body>
</html>
